<?php
header ( 'Content-Type:text/html; charset=UTF-8' );
session_start ();
$pdo = new PDO ( 'mysql:dbname=atm;charset=utf8', 'root' );
$s = $pdo->prepare ( 'select ye from username where name=:name' );
$s->execute (array(
    'name'=>$_SESSION ['user']
));
$data = $s->fetch ( PDO::FETCH_NAMED );
$arr=array('zt'=>true,'ye'=>$data['ye']);
echo json_encode($arr);